<?php
class Requirement extends AppModel {

	var $name = 'Requirement';

	//The Associations below have been created with all possible keys, those that are not needed can be removed
	var $belongsTo = array(
			'Project' => array('className' => 'Project',
								'foreignKey' => 'project_id',
								'conditions' => '',
								'fields' => '',
								'order' => ''
			),
			'RequirementType' => array('className' => 'RequirementType',
								'foreignKey' => 'requirement_type_id',
								'conditions' => '',
								'fields' => '',
								'order' => ''
			),
			'Source' => array('className' => 'Source',
								'foreignKey' => 'source_id',
								'conditions' => '',
								'fields' => '',
								'order' => ''
			),
			'User' => array('className' => 'User',
								'foreignKey' => 'user_id',
								'conditions' => '',
								'fields' => '',
								'order' => ''
			)
	);

	var $hasMany = array(
			'AnalysisRecommendation' => array('className' => 'AnalysisRecommendation',
								'foreignKey' => 'requirement_id',
								'dependent' => false,
								'conditions' => '',
								'fields' => '',
								'order' => '',
								'limit' => '',
								'offset' => '',
								'exclusive' => '',
								'finderQuery' => '',
								'counterQuery' => ''
			),
			'ValidationProblem' => array('className' => 'ValidationProblem',
								'foreignKey' => 'requirement_id',
								'dependent' => false,
								'conditions' => '',
								'fields' => '',
								'order' => '',
								'limit' => '',
								'offset' => '',
								'exclusive' => '',
								'finderQuery' => '',
								'counterQuery' => ''
			)
	);

	var $hasAndBelongsToMany = array(
			'DesignStrategy' => array('className' => 'DesignStrategy',
						'joinTable' => 'design_strategies_requirements',
						'foreignKey' => 'requirement_id',
						'associationForeignKey' => 'design_strategy_id',
						'unique' => true,
						'conditions' => '',
						'fields' => '',
						'order' => '',
						'limit' => '',
						'offset' => '',
						'finderQuery' => '',
						'deleteQuery' => '',
						'insertQuery' => ''
			)
	);

}
?>